﻿using System.Windows.Controls;
using System.Diagnostics;

namespace SilveR
{
    public partial class GridView : UserControl
    {
        private DataHandler dataHandler;
        public DataHandler DataHandler
        {
            get { return dataHandler; }
        }

        public GridView(DataHandler dataHandler)
        {
            InitializeComponent();
            this.dataHandler = dataHandler;

            //foreach (var c in dataHandler.DataTable.Columns) Debug.WriteLine(c.ColumnName);

            theGrid.DataSource = dataHandler.DataTable;
            theGrid.DataBind();
        }
    }
}
